package com.gjsh.b_obkect;

public class main
{
    public static void main(String[] args) {
        Phone phone = new Phone();
        // 调用Phone类中的方法call并且传参
        phone.call("小柯");
        //  给Phone类的变量color赋值
        phone.color="红色";
        System.out.println(phone.color);

        Person person =new Person();
        // 默认值null
        System.out.println(person.name);
        // 输出小柯
        person.name="小柯";
        System.out.println(person.name);
    }
}
